@layout("/common/_tree_container.html",{plugins:["ztree"],js:["/assets/modular/system/zxHuopin/zxHuopin_ghs.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">装修货品表管理</span>
</div>

<div id="myContiner" style="height: 100%">
    <div class="ui-layout-center">
        <div class="layui-fluid">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form toolbar">
                                <div class="layui-form-item">
                                    <blockquote class="layui-elem-quote">注意：<span style="color: red">货品添加后，请联系装修会计设置货品的报销科目！</span></blockquote>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">货品名称<span style="color: red;">*</span></label>
                                        <div class="layui-input-block">
                                            <input id="ghs" name="ghs" placeholder="" type="hidden" value="${bxda.id}" class="layui-input" lay-verify="required" required/>
                                            <input id="ghs_view" name="ghs_view" placeholder="" type="hidden" value="${bxda.xm}" class="layui-input" lay-verify="required" required/>
                                            <input id="name" name="name" placeholder="" type="text" class="layui-input" lay-verify="required" required/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">规格</label>
                                        <div class="layui-input-block">
                                            <input id="guige" name="guige" placeholder="" type="text" class="layui-input" />
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单位</label>
                                        <div class="layui-input-block">
                                            <input id="danwei" name="danwei" placeholder="" type="text" class="layui-input" size="3"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单价</label>
                                        <div class="layui-input-block">
                                            <input id="danjia" name="danwei" placeholder="" type="text" class="layui-input" size="3"/>
                                        </div>
                                    </div>
                                    <!--<div class="layui-inline">
                                        <label class="layui-form-label">货品编码<span style="color: red;">*</span></label>
                                        <div class="layui-input-block">
                                            <input id="code" name="code" placeholder="请输入编码" type="text" class="layui-input" lay-verify="required" required/>
                                        </div>
                                    </div>-->
                                    <div class="layui-inline">
                                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit><i class="layui-icon">&#xe654;</i>添加</button>
                                        <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>

                                    </div>
                                </div>
                            </div>
                            <table class="layui-table" id="zxHuopinTable" lay-filter="zxHuopinTable"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="tableBar">
    <!--<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>-->
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
@}